package com.ly.gateway.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 限流地址配
 *
 * @author ruoyi
 */
@Configuration
//热加载注解
@RefreshScope
//开启读取调用工程的yml文件前缀
@ConfigurationProperties(prefix = "current")
@Getter
@Setter
public class CurrentLimitingAddress {

    /**
     * 限流地址配
     */
    private List<String> limitings = new ArrayList<>();
}
